import React,{useEffect,useState} from 'react'
import axios from "../../../../model/User"
import { Table, Tag, Space } from 'antd';
export default function UserGrowth() {
    useEffect(() => {
        let id = window.location.hash.substring(25);
      axios.usergrowth({uid:id}).then((res)=>{
        //   console.log(res.data);
          setdatas(res.data)
      })
    }, [])
    let [datas,setdatas]=useState<any>([])

    const columns = [
        {
          title: '操作时间',
          dataIndex: 'tradingTime',
          key: 'tradingTime',
        },
        {
          title: '操作前成长值',
          dataIndex: 'beforeNum',
          key: 'beforeNum',
        },
        {
          title: '成长值数值',
          dataIndex: 'num',
          key: 'num',
        },
        {
            title: '操作后成长值',
          dataIndex: 'after',
          key: 'after',
        },
        {
            title:"成长值原因",
            dataIndex: 'why',
            key: 'why',
        },
        {
            title:"备注",
            dataIndex: 'note',
            key: 'note',
        },
        
      ];
      
      const data = datas;
  return (
    <div>
      <Table columns={columns} dataSource={data} pagination={{ pageSize: 5 }} rowKey="id" />
    </div>
  )
}
